<?php
// $Id: buddy_api.token.inc,v 1.2 2008/02/22 08:11:02 nodestroy Exp $

/**
 * @file
 * Implements token functionality for buddy_api
 */
 
/**
 * Implementation of hook_token_values()
 */
function buddy_api_token_values($type, $object = NULL) {
  if ($type == 'buddyinfo') {
    $tokens['message'] = check_plain($object['message']);
    $tokens['notification'] = check_plain($object['notification']);
    return $tokens;
  }
}
 
/**
 * Implementation of hook_token_values()
 */ 
function buddy_api_token_list($type = 'all') {
  if ($type == 'buddyinfo' || $type == 'all') {
    $tokens['buddyinfo']['message'] = t("Message which is send by userA who requests to userB");
    $tokens['buddyinfo']['notification'] = t("Notification message to display and/or log");
    return $tokens;
  }
}